package sveta.pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class HomePage extends AnyPage {

	public HomePage(PageManager pages) {
		super(pages);
	}
	@FindBy(id = "results")
		private WebElement result;
	
		
    public void chooseFilm() {
		result.findElement(By.className("movie_box")).click();
	 }
    
    public int countFilm() {
    	return(result.findElements(By.className("movie_box")).size());
 }

}
